package com.pccc.batch.config.remotepartition.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;

/**
 * 功能
 *
 * @author xueah20964 2018/10/14 Create 1.0  <br>
 * @version 1.0
 */
public class MyJobListener implements JobExecutionListener{

	private static final Logger log = LoggerFactory.getLogger(MyJobListener.class);
	
    @Override
    public void beforeJob(JobExecution jobExecution) {
        //
        log.debug("job {} 开始执行 ...", jobExecution.getJobId());
    }

    @Override
    public void afterJob(JobExecution jobExecution) {
        log.debug("job {} 执行 {} ...", jobExecution.getJobId(),jobExecution.getStatus());

    }
}
